<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <title>Number</title>
    </head>
    <body>
        <script type="text/javascript">
          var broj = 5.555;
          document.write(broj.toExponential(2));
          </script>
        <br/>
        <script type="text/javascript">
          document.write(broj.toString());
        </script>
        <br/>
        <script type="text/javascript">
          document.write(broj.toFixed(2));
        </script>
        <script type="text/javascript">
          document.write(broj.toPrecision(2));
        </script>
    </body>
</html>